<%-- 
    Document   : y
    Created on : 13 May, 2012, 12:16:02 PM
    Author     : bharat
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <link href="navigationcss.css" rel="stylesheet" type="text/css">
        <title>JSP Page</title>
    </head>
    <body>
        <ul id="nav">

            <li class="current">
                <%
                    String username = (String) session.getAttribute("username");
                    if (username != null) {
                %>
                <a href="./two_home.jsp" target="frame2">
                    <%                    } else {
                    %>
                    <a href="./two.jsp" target="frame2">
                        <%                            }
                        %>
                        Home</a>
            </li>
            <li><a href="">Archives</a>
                <ul>
                    <li><a href="">Jokes</a></li>
                    <li><a href="">Poetry</a></li>
                    <li><a href="">Qoutes</a></li>
                    <li><a href="">Articles</a></li>
                    <li><a href="">Pictures</a></li>
                    <li><a href="">Puzzles</a></li>
                </ul>
            </li>
            <li>
                <%
                    if (username != null) {
                %>
                <a href="profile.html" target="frame2">
                    <%                    } else {
                    %>
                    <a href="myAccount.jsp" target="frame2">
                        <%
                                                   }
                        %>
                        My Account</a></li>
            <li><a href="contactUs.html" target="frame2">Contact Us</a></li>
            <li><%@include file="search.html" %> </li>
            <!--  <li><a href="logout.jsp" style="font-weight: normal;font-size: 0.9em">Log out</li> -->

        </ul>
    </body>
</html>
